package com.qst.express.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.sql.Blob;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjh
 * @since 2022-09-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "用户id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "用户名")
    private String uname;
    @ApiModelProperty(value = "用户密码")
    private String upassword;
    @ApiModelProperty(value = "用户手机号码")
    private String uphone;
    @ApiModelProperty(value = "用户省份证")
    private String identify;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "用户创建时间", example = "2019-01-01 10:10:10")
    private Date createtime;
    @ApiModelProperty(value = "用户上次登录时间", example = "2019-01-01 10:10:10")
    private Date lastlogin;
    @ApiModelProperty(value = "用户id")
    private Integer identification;
    @ApiModelProperty(value = "用户头像")
    private String img;
    @ApiModelProperty(value = "用户身份，false=用户，true=快递员")
    @TableField(exist = false)
    private boolean user;


}
